/*
package com.yinNuo.collectWool.Task;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yinNuo.collectWool.collectWoolHttp.KuaiShouHttps;
import com.yinNuo.collectWool.core.constant.Costant;
import com.yinNuo.collectWool.mobileApi.entity.UserDoTask;
import com.yinNuo.collectWool.mobileApi.service.UserDoTaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;


*/
/**
 * @author: yinNuo
 * create at: 2021/12/16 下午9:15
 * @description: 快手定时任务
 *//*


@Component
@EnableScheduling
@Slf4j
public class KuaiShouTask {
    @Autowired
    KuaiShouHttps kuaiShouHttps;
    @Resource
    private UserDoTaskService userDoTaskService;


    */
/**
     * 逛街领500任务
     *//*


    @Scheduled(cron = "0 10 4 * * ? ")
    public void readContent() {
        List<UserDoTask> list = userDoTaskService.list(new QueryWrapper<UserDoTask>().eq("wool_task_id", Costant.ZHONGQING_ID));
        for (UserDoTask userDoTask : list) {
            if (userDoTask.getWoolTaskDetailId() == 1) {
                // TODO: 2021/12/16  这里暂时做十次出来写死 后面写完再出来。
                for (int i = 0; i <= 10; i++) {
                    String s = kuaiShouHttps.loogStreet();
                    log.info("快手逛街领500任务结果{}", s);
                    try {
                        Thread.sleep(Costant.SLEEP_TIME_NINE_MINUTE);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        }

    }

}
*/
